﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace USNetFramework.Network
{
    public interface ISocketListener
    {
        // 连接成功
        void OnSocketConnected(NetSocket socket);

        // 断开连接
        void OnSocketDisconnected(NetSocket socket);

        // 连接超时
        void OnSocketConnectTimout(NetSocket socket);

        // 消息处理
        bool OnHandleMessage(NetSocket socket, NetPacket packet);
    }
}
